<style>
    .layui-form-label {
        width: 80px !important;
    }

    .layui-input-block {
        margin-left: 130px !important;
    }

    .layui-iconpicker {
        max-width: 100%;
    }
</style>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">父级分类</label>
            <div class="layui-input-block">
                <select name="pid">
                    {foreach $categoryList as $k => $v}
                    <option value="{$v.value}" {in name="$v.value" value="$row.pid" }selected="" {
                    /in}>{$v.label}</option>{/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">分类名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input"
                       lay-verify="required" placeholder="请输入分类名称" value="{$row.title|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">分类英文名称</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" name="eng_title" class="layui-input" lay-reqtext="请输入分类英文名称" value="{$row.eng_title|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">选择图标</label>
            <div class="layui-input-block">
                <input type="text" id="icon" name="icon" lay-filter="icon" class="hide" value="{$row.icon|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">分类排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" lay-reqtext="分类排序不能为空" placeholder="请输入分类排序" value="{$row.sort}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="0" title="系统" {eq name="$row.type" value="0" }checked="" {
                /eq}>
                <input type="radio" name="type" value="3" title="其他" {eq name="$row.type" value="3" }checked="" {
                /eq}>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="显示" {eq name="$row.status" value="1" }checked="" {
                /eq}>
                <input type="radio" name="status" value="0" title="隐藏" {eq name="$row.status" value="0" }checked="" {
                /eq}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config.systemConfigTab/save?id={$row.id}">
                确认
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>